package com.ls.mysql.entity;

import java.util.Date;

/**
 * @Author Maple.Chen
 * @Description 益众网公告实体类, 视频类公告
 * @Date 16:58 2020/5/20
 **/
public class YzNotice {
    // 公告序列号，唯一标识，UUID
    private String id;
    // 公告标题
    private String title;
    // 公告展示优先级
    private Integer priority;
    // 发布时间
    private Date postTime;
    // 发布的文件的路径
//    private MultipartFile file;
    private String path;
    // 发布者
    private YzUsers yzUsers;

    public YzNotice() {
    }

    public YzNotice(String id, String title, Integer priority, Date postTime, String path, YzUsers yzUsers) {
        this.id = id;
        this.title = title;
        this.priority = priority;
        this.postTime = postTime;
        this.path = path;
        this.yzUsers = yzUsers;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Date getPostTime() {
        return postTime;
    }

    public void setPostTime(Date postTime) {
        this.postTime = postTime;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public YzUsers getYzUsers() {
        return yzUsers;
    }

    public void setYzUsers(YzUsers yzUsers) {
        this.yzUsers = yzUsers;
    }

    @Override
    public String toString() {
        return "YzNotice{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", priority=" + priority +
                ", postTime=" + postTime +
                ", path='" + path + '\'' +
                ", yzUsers=" + yzUsers +
                '}';
    }
}
